import request from '@/utils/request'
// 获取类型树
export function requestInfoTypeTree(data) {
  return request({
    url: '/noticeType/listChildTree',
    method: 'post',
    data: data,
  })
}

//
//新增消息类型
export function requestInfoTypeAdd(data) {
  return request({
    url: '/noticeType/create',
    method: 'post',
    data: data,
  })
}
//编辑消息类型
export function requestInfoTypeEdit(data) {
  return request({
    url: '/noticeType/update',
    method: 'post',
    data: data,
  })
}
// 删除消息类型
export function requesInfoTypeDelete(params) {
  return request({
    url: `/noticeType/delete/${params.id}`,
    method: 'post',
  })
}
